﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TaxTongji.aspx.cs" Inherits="Admin.Tax.TaxTongji" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>税收情况统计</title>
    <link href="/Admin/Css/rightbar.css?FileVersion=<%=FileVersion %>" rel="stylesheet"
        type="text/css" />
    <script src="/Admin/Scripts/jquery-1.4.1.min.js?FileVersion=<%=FileVersion %>" type="text/javascript"></script>
    <script type="text/javascript">
        //将页面内要打印的内容加入中间<!--startprint1-->打印区域<!--endprint1-->
        //打印按纽 onclick=preview(1)
        function preview(oper) {
            if (oper < 10) {
                bdhtml = window.document.body.innerHTML; //获取当前页的html代码
                sprnstr = "<!--startprint" + oper + "-->"; //设置打印开始区域
                eprnstr = "<!--endprint" + oper + "-->"; //设置打印结束区域
                prnhtml = bdhtml.substring(bdhtml.indexOf(sprnstr) + 18); //从开始代码向后取html
                prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr)); //从结束代码向前取html
                window.document.body.innerHTML = prnhtml;
                $("div:[name='printhidden']").css("display", "none");
                $("table:[name='printhidden']").css("display", "none");
                window.print();
                window.document.body.innerHTML = bdhtml;
                $("div:[name='printhidden']").css("display", "");
                $("table:[name='printhidden']").css("display", "");
            }
            else {
                window.print();
            }
        }  
    </script>
</head>
<body id="wallet">
    <!--startprint1-->
    <div class="warp">
        <div class="topnav">
            <ul>
                <li><a href="javascript:void(0);" style="cursor: default;" class="on_nav"><span>税收统计</span></a></li>
            </ul>
        </div>
        <div class="tab mt15">
            <ul>
                <li class="in_on"><strong>税收统计</strong></li>
            </ul>
        </div>
        <div class="cont" style="padding: 0; width: 678px;">
            <form id="searchForm" name="searchForm" action="TaxTongji.aspx">
            <input type="hidden" name="action" id="action" value="query" />
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="stb01">
                <tr>
                    <td style="padding-top: 0; padding-left: 15px;" align="left" valign="middle" bgcolor="#F3FBFE">
                        所属部门：<select name="selDepart" id="selDepart" style="width: 115px;">
                            <option value="">请选择所属部门</option>
                            <%=OutputSelectOptions(dtDepartmet, "name", "id", departmentID.ToString())%>
                        </select>
                    </td>
                    <td style="padding-top: 0;" height="34" align="left" valign="middle" bgcolor="#F3FBFE">
                        统计区间：<input type="text" name="txtYearMin" id="txtYearMin" value="<%=yearMin %>" style="width: 25px;" />
                        -
                        <input type="text" name="txtYearMax" id="txtYearMax" value="<%=yearMax %>" style="width: 25px;" />年
                    </td>
                    <td style="padding-top: 0; padding-right: 20px;" valign="middle" align="right" bgcolor="#F3FBFE">
                        <div class="pl10">
                            <input name="imageField" id="Button1" type="submit" value="搜 索" />
                            <input name="imageField2" id="imageField2" type="submit" value="打 印" onclick="preview(1);return false;" /></div>
                    </td>
                </tr>
            </table>
            </form>
            <table width="676" border="0" cellspacing="0" cellpadding="0" class="maintb" style="border-top: 0;"
                id="tbDataList">
                <asp:Repeater ID="rptDataList" runat="server">
                    <HeaderTemplate>
                        <tr>
                            <th width="65" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                部门名称
                            </th>
                            <th width="45" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                1月
                            </th>
                            <th width="45" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                2月
                            </th>
                            <th width="45" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                3月
                            </th>
                            <th width="45" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                4月
                            </th>
                            <th width="45" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                5月
                            </th>
                            <th width="45" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                6月
                            </th>
                            <th width="45" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                7月
                            </th>
                            <th width="45" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                8月
                            </th>
                            <th width="45" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                9月
                            </th>
                            <th width="45" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                10月
                            </th>
                            <th width="45" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                11月
                            </th>
                            <th width="45" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                12月
                            </th>
                            <th width="45" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                <strong>合计</strong>
                            </th>
                        </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td align="center">
                                <%#Eval("DepartmentName")%>
                            </td>
                            <td align="center">
                                <%#Eval("[1]")%>
                            </td>
                            <td align="center">
                                <%#Eval("[2]")%>
                            </td>
                            <td align="center">
                                <%#Eval("[3]")%>
                            </td>
                            <td align="center">
                                <%#Eval("[4]")%>
                            </td>
                            <td align="center">
                                <%#Eval("[5]")%>
                            </td>
                            <td align="center">
                                <%#Eval("[6]")%>
                            </td>
                            <td align="center">
                                <%#Eval("[7]")%>
                            </td>
                            <td align="center">
                                <%#Eval("[8]")%>
                            </td>
                            <td align="center">
                                <%#Eval("[9]")%>
                            </td>
                            <td align="center">
                                <%#Eval("[10]")%>
                            </td>
                            <td align="center">
                                <%#Eval("[11]")%>
                            </td>
                            <td align="center">
                                <%#Eval("[12]")%>
                            </td>
                            <td align="center">
                                <span style="color: Red">
                                    <%#Eval("DepartmentTotal")%></span>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
    </div>
    <!--endprint1-->
    <script type="text/javascript">
        //隔行变色
        jQuery(function ($) {
            $("#tbDataList tr:even").css("background-color", "#F9F9F9");
        });
    </script>
</body>
</html>
